﻿using System;
namespace Bzure.Common.Events
{
    public interface IEventComponent<EventDefine>
    {
        void AddEventHandler(EventDefine eventType, Delegate handler);
        void RaiseEvent(EventDefine eventType, params object[] parameters);
        void RemoveEventHandler(EventDefine eventType, Delegate handler);
    }
    public interface IEventComponent<EventDefine,Handler>
    {
        void AddEventHandler(EventDefine eventType, Handler handler);
        void RaiseEvent(EventDefine eventType, params object[] parameters);
        void RemoveEventHandler(EventDefine eventType, Handler handler);
    }
}
